﻿using System;
using System.Windows.Forms;
using com.fukefu;

namespace com.fukefu
{
    public partial class ConfigForm : Form
    {
        RegeditOperate reg = new RegeditOperate("csdn");
        public ConfigForm()
        {
            InitializeComponent();
            textBox1.Text = reg.GetString("username");
            textBox2.Text = reg.GetString("password");
        }

        private void button1_Click(object sender, EventArgs e)
        {
            button1.Enabled = false;
            //更新注册表
            reg.Set("username", textBox1.Text);
            reg.Set("password", textBox2.Text);
            //更新当前缓存
            button1.Enabled = true;
        }
    }
}
